package com.lagou.io;

import java.io.InputStream;

/**
 * @ClassName: Resource
 * @Auther: Jerry
 * @Date: 2020/6/19 22:41
 * @Desctiption: TODO
 * @Version: 1.0
 */
public class Resources {

    /**
     * 根据路径获取资源
     * @param path 路径
     * @return {@link InputStream}
     */
    public static InputStream getResourcesAsStream(String path) {
        InputStream inputStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return inputStream;
    }
}
